package com.qitmiaojie.mapper;

import com.qitmiaojie.pojo.Activity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qitmiaojie.pojo.dto.AdviceMsg;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Entity com.qitmiaojie.pojo.Activity
 */
@Mapper
@Repository
public interface ActivityMapper extends BaseMapper<Activity> {

   List<Activity> selectList() ;

    @Insert("INSERT INTO activity values(#{id},#{name},#{place},#{startdate},#{enddate},#{modality},#{description},#{status},#{issuer})")
    void insertActivity(Activity activity);
}




